package cn.vcjf.weapp.api.user.mapper;

import cn.vcjf.weapp.api.user.entity.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
public interface UserMapper extends BaseMapper<User> {

	User getUserByOpenId(String openId,Integer sysUserId);

	/**
	 * 直接下级
	 * @param user
	 * @return
	 */
	List<User> getUserLowerLevel(User user);

	/**
	 * 间接下级
	 * @param user
	 * @return
	 */
	List<User> getIndirectLowerLevel(User user);

}
